package com.sys.service.impl;


import com.sys.dao.KhmcDao;
import com.sys.pojo.Khmc;
import com.sys.service.KhmcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class KhmcServiceImpl implements KhmcService {
    @Autowired
    private KhmcDao khmcDao;

    /**
     * 查询所有用户
     * @return
     * @throws RuntimeException
     */
    @Override
    public List<Khmc> getAll() throws RuntimeException {
        return khmcDao.getAll();
    }
}
